package kr.salebeans.cm.domain.common;

import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 *======================================================
 * @see 	: CommonSaleType
 * @author  : bgkang
 * @since 	: 2012. 11. 14.
 * @note    : 판매종류
 *======================================================
 */
@Entity
@Table(name = "CM_COMMON_SALE_TYPE")
public class CommonSaleType {

    @Id
    @GeneratedValue(generator = "SQ_CM_COMMON_SALE_TYPE")
    @SequenceGenerator(name = "SQ_CM_COMMON_SALE_TYPE", initialValue = 1, allocationSize = 1, sequenceName = "SQ_CM_COMMON_SALE_TYPE")
    @Column(name = "ID")
    private long id;

    @Column(name = "TYPE", length = 4, nullable = false)
    private String type;

    @Column(name = "CODE", length = 4, nullable = false)
    private String code;

    @Column(name = "VALUE", length = 255, nullable = false)
    private String value;

    @Embedded
    private DataHandling handling;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public DataHandling getHandling() {
        return handling;
    }

    public void setHandling(DataHandling handling) {
        this.handling = handling;
    }

}
